<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>文本缩进</title>
    <style>
        p {
            text-indent: 20px;
        }
        .m {
            text-indent: 2em;
        }
    </style>
</head>
<body>
    <p>本行文字缩进20px<br>强行第二行开始</p>
    <div class="m">本行文字是缩进当前元素两个文字大小的距离<br>强行第二行开始</div>
</body>
</html>